package com.yys.springcloud.service.feign.fallback;

import com.yys.springcloud.entities.CommonResult;
import com.yys.springcloud.entities.Payment;
import com.yys.springcloud.service.feign.PaymentFeignService;
import org.springframework.stereotype.Component;

/**
 * @program: cloudalibaba2021
 * @description:
 * @author: Mr.Wu
 * @create: 2021-06-21 15:16
 **/
//实现PaymentFeignService接口,实现兜底方法
@Component
public class PaymentFallbackService implements PaymentFeignService {
    @Override
    public CommonResult<Payment> getPaymentId(Long id) {
        return new CommonResult<>(444,"远程调用失败,获取不到数据");
    }
}
